User's templates, tag list, gallery's slug and SVN

italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

User's templates, tag list, gallery's slug and SVN

Post by italkcafe »

Hello admin,

Thanks for the excellent script! I've just got my site up and while playing with it, I am having quite a few questions that I'd like to ask:

1/ With Tube templates for login, register and profile pages I don't think there is a need for a sub template. But if I remove it will have notice at the top of page. Now I put blank sub template for these and script echo it at the top of page (view source):

<template name=default ></template><!DOCTYPE html>...

That looks not very nice.

2/ I am trying to echo keywords for meta keyword, the separator=", " bit doesn't work:

<tag_list separator=", " ><!--TAG--></tag_list>

so I have to use, which shows redundant comma at the end.

<tag_list><!--TAG-->, </tag_list>

3/ When user is not login and try to comment, where's the Name value is kept?

In this case, $comment['username'] is blank.

4/ When importing my gallery's slug always has -1 at the end:

For example:

http://domain.com/gallery/gorgeous-asia ... ?4x79x4430

How do I avoid this?

Can we have a replace option in mass edit for slug too?

5/ When user registers, there is activation email sent from: Admin <[email protected]>
How do we change From name from Admin to something like Site Name?

6/ I am using sub version to monitor changes in template, css etc. It shows many warnings in admin home:

Folder includes/img/img_mod/.svn is not a part of scj, skipping
Folder includes/img/.svn is not a part of scj, skipping
Folder includes/db_modules/.svn is not a part of scj, skipping
/home/xxx.com/public_html/scj/backup/.svn/text-base/last.data.svn-base unexpected extension svn-base in this folder but it doesnt have bad tags
/home/xxx.com/public_html/scj/backup/.svn/text-base/scj_pro_49.2013-11-30.sql.svn-base unexpected extension svn-base in this folder

Can we have this turned off?

7/ It would be nice to have more template elements like header / bottom (which does not require sub template) to be included (rather than include file). Some boxes on pages are reused every where etc.

I am trying to use header.tpl / bottom.tpl via FTP with Dev mode ON but it show errors (no sub template) on top.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: User's templates, tag list, gallery's slug and SVN

Post by admin »

1. ok
2. what version do you use ?
3. <!--USERNAME-->
4. did you try script update ?
5. there's no such option right now, do you need it ?
6. if you need templates which are in DB and css which is outside of scj folder - why don't you exclude scj of snv ?
7. <!--INCLUDE_TEMPLATE... tag
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: User's templates, tag list, gallery's slug and SVN

Post by italkcafe »

When I posted the questions above, script shows: Updates and news ( Your last update # : 49 ).

I run the update, everything went fine. I copied index.php and out.php to website root.

But after that there is error in front end:

Warning: mysql_connect(): Unknown MySQL server host 'd' (1) in /home/domain.com/public_html/scj/includes/db_modules/mysql.php on line 11 Can not connect to database server.

Admin area seems still working.

Please advise?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: User's templates, tag list, gallery's slug and SVN

Post by admin »

Did you try to open w\o cache ?
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: User's templates, tag list, gallery's slug and SVN

Post by italkcafe »

Awesome. At the end of script update it said cache was purged so I didn't think of that.
Looks like the option to Delete all cache has been removed in this update? So I had to turn on ' Recreate visited pages' cookie and it seems working now.

The only problem is that when gallery link is clicked:

http://xxx.com/gallery/beautiful-and-ta ... ml?4x20x95

It saids:

Warning: Invalid argument supplied for foreach() in /home/xxx.com/public_html/scj/cgi/out.php on line 0 Fatal error: Cannot use string offset as an array in /home/xxx.com/public_html/scj/includes/libs/tpl_functions.php on line 0

and shows blank page.

Please advise?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: User's templates, tag list, gallery's slug and SVN

Post by admin »

Check plz settings - Config lists - Spiders UA

and Adv. Traffic Rules - Mobile User Agents
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: User's templates, tag list, gallery's slug and SVN

Post by italkcafe »

The gallery page now shows content but still having Warning on top:

Warning: Invalid argument supplied for foreach() in /home/xxx.com/public_html/scj/cgi/out.php on line 0
Warning: Invalid argument supplied for foreach() in /home/xxx.com/public_html/scj/cgi/out.php on line 0

(It shows twice, because I have <!--SCJ_INCLUDE--> in the template?)

I have turned off PHP error in host setting for PHP ini, but Warning still shows.

I checked Spiders UA:

bot
crawl
spider
proxy
yahoo
google
SmartCJ
SCJ
yandex
Baiduspider
FTT2 Ping Bot

Mobile Agents:

mobile, brew, htc, j2me, lg, midp, mot, motorola, netfront, obigo, openweb, opera mini, palm, psp, samsung, sanyo, sch, sonyericsson, symbian, symbos, teleca, up.browser, vodafone, wap, webos, windows.ce, windows ce, iphone, ipod, ipad, midp, symbian, series 60, s60, nokia, android, blackberry, bolt, doris, fennec, gobrowser, iemobile, iris, Maemo, Minimo, mobi, Skyfire, TeaShark, uZardWeb, HUAWEI

When I try to add new trade /scj/scjwebmaster.php, it took long time and finally Internal Server Error shown.

Apache error log:

[Sat Dec 07 19:01:20 2013] [warn] [client 113.190.207.88] mod_fcgid: stderr: PHP Notice: Undefined index: mobile_ua in /home/xxx.com/public_html/scj/cgi/out.php on line 0
[Sat Dec 07 19:01:20 2013] [warn] [client 113.190.207.88] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /home/xxx.com/public_html/scj/cgi/out.php on line 0

[Sat Dec 07 19:01:20 2013] [warn] [client 113.190.207.88] mod_fcgid: stderr: PHP Notice: Undefined variable: domain in /home/xxx.com/public_html/scj/cgi/rot_in.php on line 0, referer: http://xxx.com/gallery/cum-craving-nubi ... l?4x3x4121

[Sat Dec 07 19:08:09 2013] [error] [client 66.249.66.178] File does not exist: /home/xxx.com/public_html/category, referer: http://xxx.com/category/3/Babe/ctr/12/

[Sat Dec 07 19:23:33 2013] [warn] [client 113.190.207.88] mod_fcgid: read data timeout in 31 seconds, referer: http://xxx.com/scj/scjwebmaster.php
[Sat Dec 07 19:23:33 2013] [error] [client 113.190.207.88] Premature end of script headers: scjwebmaster.php, referer: http://xxx.com/scj/scjwebmaster.php

Please advise?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: User's templates, tag list, gallery's slug and SVN

Post by admin »

And you have traders ?

ok, send me ftp to that domain to scj folder plz.
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: User's templates, tag list, gallery's slug and SVN

Post by italkcafe »

Thank you. I don't have any trader right now.

I have reinstalled the script, updated to #50 then re-imported the thumbs. Problem with warnings now gone.

I have installed the script freshly and updated to #50 on 2 different domains (2 accounts on same server). But on the other domain, when I logged-in the home of admin it shows:

(Dark gray News box on top left):
Update 50 released ! etc...

The account having problem does not have this 'News box' on top left (is this 2 different #50 versions or this is just welcome cookie set on another domain)?

I still have problem when I try to add new trade /scj/scjwebmaster.php, it took long time and finally Internal Server Error shown.

I will PM you the FTP details for you to look at if you have time.

Thank so much.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: User's templates, tag list, gallery's slug and SVN

Post by admin »

Tried /scj/scjwebmaster.php at your domain - opens fine.

Can you please give more details ?
Don't forget to run script update
Post Reply