>>
Site Map
>>
Forums
>>
Post Installation Help
Forum module - topics in forum:
Post Installation Help - Help with problems after installation.
Downloads modification
oh uhh im using php-nuke 7.8
Hey guys, uhh i am trying to edit something in my downloads section
i've been working at it for 3 hours, and i cant find the solution, its basicly pissing me off
if you go to my site
www.torob.smdepot.net , and check out the download section and press music
you will see 3 downloads *albums*
there is a (album) there...
under the picture of the album it says
Password: Persian Wo Filesize: 22 megabytes
Added on: 16-Jun-2006 Downloads: 3 Rating: 10 (1 Vote)
HomePage | Rate Resource | Report Broken Link | Details | Editorial
well what i have been trying to do is,
you see that Password: Persian Wo ?
its bold...
well it used to be version...
what i did is, i went to the index.php in /modules/downloads/
and i changed the coding from _VERSION to _PASSWORD
same with the index.php in /modules/downloads/admin/
it worked great...
so now that its changed from version to password, i can put anything i want in the box... so my password was "Persian World" without the quotation marks...
now here is where the problem comes in, when i enter that in the box, either from the admin section or the modify section where users can modify downlaods and submit, until admin aproves
i tried both
but when i enter "Persian World"
it only shows it as "Persian Wo"
without the "rld"
i looked around more, and i saw a code saying size and maxlength
well i thought mabey if i change those it will work
i changed the numbers to 13, (thats the number of letters in "Persian World"
well that didnt work... it still shows up as Persian Wo
this is getting pretty annoying
Could anyone manage to help me out here?
Open modules/download/inde.php and find on or about line 224:
| Code: : |
| .""._VERSION.": <input type=\"text\" name=\"version\" size=\"11\" maxlength=\"10\"><br>" |
change it to:
| Code: : |
| .""._VERSION.": <input type=\"text\" name=\"version\" size=\"20\" maxlength=\"19\"><br>" |
On or about line 2073 find:
| Code: : |
| .""._VERSION.":<br><input type=\"text\" name=\"version\" value=\"$version\" size=\"11\" maxlength=\"10\"><br><br>" |
Change to:
| Code: : |
| .""._VERSION.":<br><input type=\"text\" name=\"version\" value=\"$version\" size=\"20\" maxlength=\"19\"><br><br>" |
THEN
Open modules/downloads/admin/index.php and find on or about line 107 find:
| Code: : |
| ."" . _VERSION . ": <input type=\"text\" name=\"version\" size=\"11\" maxlength=\"10\" value=\"$version\"><br>" |
Change to:
| Code: : |
| ."" . _VERSION . ": <input type=\"text\" name=\"version\" size=\"20\" maxlength=\"19\" value=\"$version\"><br>" |
Find Line 207:
| Code: : |
| ."" . _VERSION . ": <input type=\"text\" name=\"version\" size=\"11\" maxlength=\"10\"><br><br>" |
Change it to:
| Code: : |
| ."" . _VERSION . ": <input type=\"text\" name=\"version\" size=\"20\" maxlength=\"19\"><br><br>" |
Then on about line 341 find:
| Code: : |
| ."" . _VERSION . ": <input type=\"text\" name=\"version\" size=\"11\" maxlength=\"10\" value=\"$version\"><br>" |
change with:
| Code: : |
| ."" . _VERSION . ": <input type=\"text\" name=\"version\" size=\"20\" maxlength=\"19\" value=\"$version\"><br>" |
There is no garraunty this will work but it should.
No it does not work,
like i said before i've already tried that.. and it does not work
it still shows as Persian Wo instead of Persian World
i still tried it again to make sure
w/ ur exact codes and no , its the same thing
From phpMyAdmin Find your nuke_downloads_downloads if your prefix isn't nuke then substitute your profix. Click the structure icon (seccond to the left. (not the structure tab at the top)
On the version line click the icon that looks like a pencil.
Length/Values Change the 10 to whatever value you would like it to be.
Make sure you backup your database before performing this operation.
The above changes I gave you earlier are still required.
its sad , but whats phpmyadmin?
You'll find it in your sites cpanel or control panel
yo i dont get what u mean,
i so nothing that is described by u in my CP
if you want i can give you admin and u can go check
i read over ur post 10 times and i dont see anything like it..
srry
This isn't pary of the nuke install. It's part of the backend of your hosting package. http://yoursite.com/cpanel or http://yoursite.com/cp
This would be where you set up the database in the first place!
Okay i see,
uhh the person who is hosting my site set it up for me
so i'll talk to him,
thanks for the info!
Another great help! thanks alot