The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Few vbcoding queries
1. vB uses this code to redirect to any location (in our case page.php), how do I redirect to previous page that user accessed?
PHP Code:
PHP Code:
2. How do I create online locations for my sub-pages like for do=this and do=that 3. After reading Send PMs (automatically), it was easy to send PM's. Just have a few queries, what does $pmdm->set_info('is_automated', true); AND cache_permissions($fromuser, false); does ? coz I can't see any difference with/without them. 4. How do we use vbmail function in our page? I think there's something wrong in my code as I am getting very late mails OR not getting them at all. The other default mailing functions are working perfect i.e. I receive mails instantly when using contact us or any other email function but only not through my custom page. PHP Code:
|
#2
|
||||
|
||||
i am still waiting... !!!!!
The main problem i am facing is with my first question. What the problem is that I have to create similar two sub-pages just because I want both of them to redirect at different locations on submitting the form. For ex. with the below code in page.php?do=this, it would redirect to page2.php. Now how to redirect the same to page3.php depending on the source page from where the user accessed page.php?do=this PHP Code:
|
#3
|
|||
|
|||
$vbulletin->url already contain the referer page the user was on before clicking the link/button ... if you modify that variable, it is renewed to your new value.
|
#4
|
||||
|
||||
and how to go one more page back ?
|
#5
|
||||
|
||||
You can't, unless you keep passing the value on...
|
#6
|
||||
|
||||
alright thanks for the help uptill now.
A small question plz:- I am storing date in unix timestamp format and retrieve it with vbdate(). Fine ! It simply displays in text field. But I want to retreive it just the way vb does it i.e. in combo/list boxes so that i can edit/update it. Code:
Month Date Year HH MM SS Thank You |
#7
|
||||
|
||||
PHP Code:
|
#8
|
||||
|
||||
oh can't get it work !
see I have this in my PHP Code:
$row_timestamp = explode('-', vbdate('j-n-Y-H-i-s', $result['TIMESTAMP'])); list($day, $month, $year, $hour, $minute, $second) = $row_timestamp; It displays simple "Array" and no list boxes are displayed too |
#9
|
|||
|
|||
Ofcourse, you are creating an array with explode().
|
#10
|
||||
|
||||
ya I can notice that explode is creating a problem. So, how to get it working plz.. ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|