The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#152
|
|||
|
|||
![]()
ok i sorted it now last night but was tired and went bed.
Just like to say a big thanks m8 - sometimes though when one is stuck it just seems easier to do a post than to actually find out what the prob was and when i finally did it - i was mega p***ed as it was all to do with the path. Excellant hack m8 and one that im sure a lot of use are glad u made. |
#153
|
|||
|
|||
![]()
Instaleld this hack .. using the latest .zip .. everythign works, I can upload the images, I see them in the User CP, I click on it, it does do [sig=6] (6 beeign that sig number I supose) ..
but when I click on "submit modifications" .. I get Parse error: parse error in /hsphere/local/home/yaxay/yaxay.com/yack/admin/functions.php(821) : regexp code on line 1 Fatal error: Failed evaluating code: in /hsphere/local/home/yaxay/yaxay.com/yack/admin/functions.php on line 821 Any ideas ? PS - Line 821 is .. $bbcode=preg_replace($searcharray, $replacearray, $bbcode); |
#154
|
|||
|
|||
![]() Quote:
Check, PHP Code:
Check PHP Code:
Check the function "checksigimage" exists within functions.php. |
#155
|
|||
|
|||
![]()
Thank you .. As it seems I furgot somethign on functions.php
![]() ![]() |
#156
|
||||
|
||||
![]()
This is a great hack! I think there's one bug though:
I just installed v.2.0.4b and everything worked except deleting the image from the image sig list. The delete appeared successful, but when I checked the folder it was still there. It turns out imageid was missing from the query for the image info when deleting an image. The code I had looks like this: simage.php Code:
// ############################ delete sig image ############################# if ($HTTP_GET_VARS['action']=="remove") { include("./global.php"); if ($bbuserinfo['userid']==0){ show_nopermission(); exit; } if (is_numeric($HTTP_GET_VARS['imageid'])) { // delete file $sigimage = $DB_site->query_first("SELECT extension, userid, location FROM sigimage WHERE imageid = $HTTP_GET_VARS[imageid]"); if ($sigimage['userid'] == $bbuserinfo['userid']) { // local location lets remove it. if ($sigimage['location']==0) { // can delete image @unlink($sigimagedir ."/uid". $bbuserinfo[userid] ."iid". $sigimage['imageid'] .".". $sigimage['extension']); // delete entry } $DB_site->query("DELETE FROM sigimage WHERE imageid=$HTTP_GET_VARS[imageid] AND userid=$bbuserinfo[userid]"); $goto="simage.php?s=$session[sessionhash]&action=alterimg"; eval("standardredirect(\"".gettemplate("redirect_imagedelete")."\",\"$goto\");"); } else { // no permission show_nopermission(); exit; } } else { // no permission show_nopermission(); exit; } } simage.php Code:
// ############################ delete sig image ############################# if ($HTTP_GET_VARS['action']=="remove") { include("./global.php"); if ($bbuserinfo['userid']==0){ show_nopermission(); exit; } if (is_numeric($HTTP_GET_VARS['imageid'])) { // delete file $sigimage = $DB_site->query_first("SELECT imageid, extension, userid, location FROM sigimage WHERE imageid = $HTTP_GET_VARS[imageid]"); if ($sigimage['userid'] == $bbuserinfo['userid']) { // local location lets remove it. if ($sigimage['location']==0) { // can delete image @unlink($sigimagedir ."/uid". $bbuserinfo[userid] ."iid". $sigimage['imageid'] .".". $sigimage['extension']); // delete entry } $DB_site->query("DELETE FROM sigimage WHERE imageid=$HTTP_GET_VARS[imageid] AND userid=$bbuserinfo[userid]"); $goto="simage.php?s=$session[sessionhash]&action=alterimg"; eval("standardredirect(\"".gettemplate("redirect_imagedelete")."\",\"$goto\");"); } else { // no permission show_nopermission(); exit; } } else { // no permission show_nopermission(); exit; } } Mark |
#157
|
|||
|
|||
![]()
Great hack !
I Just installed 2.0_4b as well (with vb 2.2.6), userCP work just fine, but I've red X in the sig area ![]() |
#158
|
|||
|
|||
![]() Quote:
|
#159
|
|||
|
|||
![]()
Thanks dude
![]() |
#160
|
|||
|
|||
![]()
I'm seeing a problem. When I upload an image, and click delete. The file seems to be still on the server [ different name , same file type ] So shouldn't it delete it off the server too?
|
#161
|
|||
|
|||
![]() Quote:
Define different name? I have tested that this hack does remove images on all versions of php where the "unlink" function is present. However if your images path has a slash at the end then removal of images can fail. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|