Menu
  • HOME
  • TAGS

If VB condition with or

php,if-statement,vbulletin

Found it <vb:if condition="!in_array($channel['nodeid'], array(16,20))"> <tr><td>Something</td></tr> </vb:if> ...

How do I get vBulletin forum URL?

php,vbulletin

This is how I got the URL/link $link = fetch_seo_url('thread|nosession|fullurl|js', $thread, array('goto' => 'newpost'));

vBulletin Curl login redirect not working

php,curl,cookies,vbulletin

Ok, instead of using file_get_contents($user_url) . I used php_curl & finally got the logged in pages. $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $user_url); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"); curl_setopt ($ch, CURLOPT_TIMEOUT, 60); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch,...

Where can I find external.php file in vBulletin?

php,vbulletin,forums

You can find external.php in the root of the forum folder. For example: If your forums are at example.com/forums/ or forums.example.com, then you can find external.php at /public_html/forums/external.php. Or if your forums are on the root of the domain then you'll find external.php at /public_html/external.php. As others have said, I...

php string replacement in vbulletin product

php,string,replace,vbulletin

You need to put the string into '' while inserting it into other string. Replace $banuserurl = $vbulletin->options['bburl'].'/misc.php?'.$vbulletin->session->vars['sessionurl'].'do=ccb_banuser&u=$vbulletin->GPC['ccb_newmessage']';exec_header_redirect($banuserurl); With $banuserurl = $vbulletin->options['bburl'].'/misc.php?'.$vbulletin->session->vars['sessionurl'].'do=ccb_banuser&u='.$vbulletin->GPC['ccb_newmessage'];exec_header_redirect($banuserurl); ...

How to map URL requests for vBulletin posts to Drupal 7 Forum comments after migration?

url,drupal,migration,forum,vbulletin

I found the solution. Drupal Migrate creates and saves tables in the database mapping the old resource ID to the new ID. You just have to be careful since the schema are different between vBulletin and Drupal Forum; primarily in that Forum posts in D7 (other than the first post...

Prevent registration between certain hours

php,if-statement,time,vbulletin

Instead comparing strings, you could also use DateTime objects so that you could easily compare time: $regtime = new DateTime('23:15'); $from_time = new DateTime('23:00'); $to_time = new DateTime('23:30'); if($regtime >= $from_time && $regtime <= $to_time) { echo 'okay, process this'; } else { echo 'not allowed'; } ...

How to login to vbulletin forum using HTMLUnit?

java,web-scraping,htmlunit,vbulletin

Try inputting the values with xpath and see if that works. page.getFirstByXPath("//fieldset/table/tbody/tr/td/input").type("yourid") //this needs to be casted to htmlelement I think, eclipse should take of that page.getFirstByXPath("//fieldset/table/tbody/tr[2]/td/input").type("yourpass") //also needs to be casted page.getFirstByXPath("//tr[4]/td/input").click(); //also needs to be casted! If the solution above does not work, you would have to capture...