Go Back   vb.org Archive > Search Forums
FAQ Community Calendar Today's Posts Search

Showing results 1 to 25 of 101
Search took 0.00 seconds.
Search: Posts Made By: White_Snake
Forum: vB4 Programming Discussions 03-02-2010, 06:06 PM
Replies: 0
Views: 325
Posted By White_Snake
while loop not working

hello!

the following piece of code is not working, im inserting this on a standalone php page inside vbulletin directory, but the while function is not working, it doesnt returns anything at all...
Forum: vB4 Programming Discussions 02-25-2010, 04:52 AM
Replies: 4
Views: 692
Posted By White_Snake
thanks you again for your answer but its not...

thanks you again for your answer

but its not working at all :( any other suggestion you might have? thanks!

--------------- Added 1267137287 at 1267137287 ---------------

okay i got it, i...
Forum: vB4 Programming Discussions 02-24-2010, 11:50 PM
Replies: 4
Views: 692
Posted By White_Snake
hello Lynne :) i have tried your code and it...

hello Lynne :)

i have tried your code and it hasnt worked, ill post what i have in here:

hook: newpost_process
$droled= "active";
$droled = $vbulletin->GPC['droled'];...
Forum: vB4 Programming Discussions 02-24-2010, 06:08 PM
Replies: 4
Views: 692
Posted By White_Snake
send a single variable to a vbulletin default template

on cellarius article on vbulletin templating, he explains the way to send variables to preexisiting templates is this:

$templater = vB_Template::create('mytemplate');
...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 07:47 PM
Replies: 20
Views: 2,415
Posted By White_Snake
$vbulletin->db->query_write(" UPDATE "...

$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "user
SET usergroupid = '10'
WHERE userid = " . $vbulletin->userinfo['userid']. "
");

now try it...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 07:17 PM
Replies: 20
Views: 2,415
Posted By White_Snake
okay, lets see then, the last piece of code you...

okay, lets see then, the last piece of code you posted should work, and i just spotted a error on your mysql query:

$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "user
...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 07:07 PM
Replies: 20
Views: 2,415
Posted By White_Snake
i will explain you how could it happen, and about...

i will explain you how could it happen, and about the debug, you can turn on the debug mode just in the same way it can be turned on for vbulletin 3
...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 06:52 PM
Replies: 20
Views: 2,415
Posted By White_Snake
yes, that code will do exactly what you want, but...

yes, that code will do exactly what you want, but as i say, you will run the risk to overwrite your and your staff main membergroup permissions, so, you must do it with secondary usergroups, and...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 06:42 PM
Replies: 20
Views: 2,415
Posted By White_Snake
if ($vbulletin->userinfo[field6] == 'Yes' AND...

if ($vbulletin->userinfo[field6] == 'Yes' AND $vbulletin->userinfo['usergroupid'] =='2')
{
$membergroupids = $userdata->fetch_field('membergroupids');
if ($membergroupids)
{
...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 06:29 PM
Replies: 20
Views: 2,415
Posted By White_Snake
the problem might be that userdata set, im not...

the problem might be that userdata set, im not sure either exactly how it works, the if sections are fine, the problem is the userdata, ill check around to get the exact function but before it, i...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 06:17 PM
Replies: 20
Views: 2,415
Posted By White_Snake
okay, well, your code is requestin the db for...

okay, well, your code is requestin the db for data the vbulletin main array already contains, so, try this code and tell me if it works:


if ($vbulletin->userinfo[field6] == 'Yes' AND...
Forum: Modification Requests/Questions (Unpaid) 02-12-2010, 06:06 PM
Replies: 20
Views: 2,415
Posted By White_Snake
on which hook are you setting this? this code...

on which hook are you setting this? this code should run after the user has registered in the forum, therefore it should run depending if you are asking your users to validate their email or not and...
Forum: vB4 Design and Graphics Discussions 02-11-2010, 06:36 PM
Replies: 1
Views: 499
Posted By White_Snake
anybody? please? i really need help with this, im...

anybody? please? i really need help with this, im completely lost!
Forum: vB4 Design and Graphics Discussions 02-10-2010, 11:11 PM
Replies: 5
Views: 2,083
Posted By White_Snake
i second this, i have the same issue

i second this, i have the same issue
Forum: vB4 General Discussions 02-10-2010, 09:22 PM
Replies: 6
Views: 3,400
Posted By White_Snake
well apparently you were right the first time,...

well apparently you were right the first time, using $bbuserinfo['userid'] works on templates, i tought you were using a separate file, anyway, try to use $bbuserinfo again
Forum: vB4 General Discussions 02-10-2010, 08:41 PM
Replies: 6
Views: 3,400
Posted By White_Snake
exactly where are you pasting this code? inside a...

exactly where are you pasting this code? inside a file? in a plugin? in a template?
Forum: vB4 General Discussions 02-10-2010, 07:05 PM
Replies: 6
Views: 3,400
Posted By White_Snake
im not sure about how to mix JS and php, but,...

im not sure about how to mix JS and php, but, where is this exactly located? and have you tried $vbulletin->userinfo[userid] instead of $bbuserinfo[userid]?
Forum: vB4 Design and Graphics Discussions 02-10-2010, 06:27 PM
Replies: 1
Views: 499
Posted By White_Snake
help rendering templates

okay im trying to learn how to use the template rendering system on vbulletin 4, and i tried something very easy to learn how to do stuff, this is just something simple i want to do to learn how to...
Forum: vB4 General Discussions 02-03-2010, 03:23 AM
Replies: 0
Views: 409
Posted By White_Snake
looking for a basic plugin to template tutorial

im looking foward to move variables from a plugin to a template, but, i have discovered that i have absolutley no idea how to do it so, im looking for some sort of tutorial, or at lease a extremely...
Forum: vB4 Design and Graphics Discussions 02-01-2010, 01:39 AM
Replies: 2
Views: 581
Posted By White_Snake
thank you :) gonna give it a try

thank you :) gonna give it a try
Forum: vB4 Design and Graphics Discussions 02-01-2010, 12:08 AM
Replies: 2
Views: 581
Posted By White_Snake
using custom vars in conditionals

This Article (https://vborg.vbsupport.ru/showthread.php?t=231525) says you can not use {vb:raw var} in template conditionals, but, what if i *REALLY* need to use it?

i need to do this in my...
Forum: vB4 Programming Discussions 01-31-2010, 11:30 PM
Replies: 27
Views: 2,277
Posted By White_Snake
okay then, i suppose next time im going to double...

okay then, i suppose next time im going to double and triple check the code around the hooks i plan to use, thanks a lot!
Forum: vB4 Programming Discussions 01-31-2010, 05:22 PM
Replies: 27
Views: 2,277
Posted By White_Snake
okay i moved it to newpost_process and its...

okay i moved it to newpost_process and its working pefectly but i wonder if the newpost_complete thing its a bug or something like that
Forum: vB4 Programming Discussions 01-31-2010, 02:17 PM
Replies: 27
Views: 2,277
Posted By White_Snake
nothing there, but, i have found something...

nothing there, but, i have found something interesting, if i execute the code in another hook, such as memberdisplay (hook for displaying the memeber profile) it works perfectly, so i suppose the...
Forum: vB4 Programming Discussions 01-29-2010, 11:51 PM
Replies: 27
Views: 2,277
Posted By White_Snake
okay, i did set the message inside a variable,...

okay, i did set the message inside a variable, not in the vbullein phrase manager and, where can i check the error_logs part? thank you :)
Showing results 1 to 25 of 101

 
Forum Jump

All times are GMT. The time now is 11:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01810 seconds
  • Memory Usage 2,050KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)forumjump
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (2)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)search_results
  • (25)search_results_postbit
  • (1)spacer_close
  • (1)spacer_open
  • (36)threadbit_pagelink 

Phrase Groups Available:
  • global
  • inlinemod
  • prefix
  • search
Included Files:
  • ./search.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_search.php
  • ./includes/functions_databuild.php
  • ./includes/functions_forumlist.php
  • ./includes/functions_misc.php
  • ./includes/functions_forumdisplay.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • search_before_process
  • search_start
  • search_results_start
  • search_results_query_posts
  • search_results_prebits
  • threadbit_process
  • search_results_postbit
  • pagenav_page
  • pagenav_complete
  • forumjump
  • search_complete
  • navbits
  • navbits_complete