Recent content by majafy

  1. M

    number in topic title will damage url

    Thanks Jake, My problem solved.
  2. M

    number in topic title will damage url

    I did convert my vBulletin database to XenForo without any problem, and then use this script to redirect vBulletin topics url to XenForo: https://xenforo.com/community/resources/vbulletin-4-x-url-redirection.120/ this is my .htaccess file content: # Mod_security can interfere with uploading...
  3. M

    XF 1.4 Change email templates

    Thanks Brogan, Yes I can access to email templates, but I want to change the style of emails, I mean structure of email (I want put my logo and some links in emails) Would you please guide me exactly which template I should modify?
  4. M

    number in topic title will damage url

    Thanks, How can I rewrite the url ?
  5. M

    number in topic title will damage url

    Hello, When my users create a topic and start the title of topics with number character the URL does not work, for example title of topic is "10 tips and tricks for php", and when I want watch this topic I will route to http://[my forum]/threads/10.[blah blah blah] Regards
  6. M

    Import Thanks from vBulletin

    Hi, I wrote a simple script to read thanks from vbulletin and then insert into xenforo tables. <?php @mysql_connect("localhost","root",""); @mysql_select_db("xen"); $q1 = mysql_query("SELECT * FROM tmp_like WHERE id > ".$_GET['next']." AND id <=...
  7. M

    Read from JSON/Cached JSON

    Oh, but I need refresh the cache each every 2~3 hours, because my json will update. what should I do now ?
  8. M

    Use stdClass in Templates

    Thanks again Chris ;) Yes, This problem related to JSON question, I found this solution earlier, but I think there is a way to use object. anyway thank you for your help.
  9. M

    Read from JSON/Cached JSON

    Is there any way to set expire time ? Regards
  10. M

    Use stdClass in Templates

    Hi, I have a stdClass variable which created in PHP, I use $template->create to pass it to my template. this is my template code : <xen:foreach loop="$data" value="$i"> {$i.name}<br> </xen:foreach> But because $i is an object I get this error: Fatal error: Cannot use object of type...
  11. M

    Read from JSON/Cached JSON

    Thanks Chris, Would you please guide me about XenForo HTTP methods too? Regards
  12. M

    Read from JSON/Cached JSON

    Hi, I want use some data from RESTFul API (JSON) and show in sidebar, so I created a template and include in PAGE_CONTAINER, and in new template I used <xen:callback> to include and run my php code, in php code I use file_get_contents to read from json. everything seems to be ok, but I have 2...
Top Bottom