vBulletin Modifications

creating Function in SA fxppack

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-28-2005, 06:10 PM   #1
vB User
Join Date: Oct 2004
Real Name: Matti
Location: Mechelen
MaTtIaSkE is on a distinguished road

Default creating Function in SA fxppack

I am trying to create a few extra addons in my lockdown of SA

and also a new function
but it doesn't seem to work
can someone check the code and tell me meaby ?
in function_fxppack.php

function addmb($pubsize) {
global $DB_site;
$sql = "
UPDATE user
SET pubtotal + '$pubsize'
WHERE userid = '$bbuserinfo[userid]'
";
$data = $DB_site->query_first($sql);
return $data;
}

and in newthread.php

if ($newpost['pubsize']!="")
{
addmb($newpost['pubsize']);
}




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-28-2005, 06:14 PM   #2
Member
Join Date: Jun 2005
redbullcola is on a distinguished road

Default

so you want too add a space colom in the hack lockdown?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-28-2005, 06:24 PM   #3
Coder
Maxx's Avatar
Join Date: Sep 2004
Location: U.K
Maxx is on a distinguished road

Default

try this ;)

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-28-2005, 06:27 PM   #4
vB User
Join Date: Oct 2004
Real Name: Matti
Location: Mechelen
MaTtIaSkE is on a distinguished road

Default

tried that mad and still nothing :/




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-28-2005, 06:40 PM   #5
Coder
Maxx's Avatar
Join Date: Sep 2004
Location: U.K
Maxx is on a distinguished road

Default

oki try this :

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-28-2005, 07:35 PM   #6
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

Why not add it inside the query that does pubcounts etc in functions_newpost?

Personally I think the idea of users adding the size is pointless but if you going to allow them to do it why not just do it like everything else in hte lockdown is done?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable "Quote" function cyberman vBulletin Modification Requests 0 03-06-2006 08:10 PM


All times are GMT -3. The time now is 03:42 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)