Thumbs template

Post Reply
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Thumbs template

Post by dakini »

Hello again.
I have started to work on template but im stuck again at this <!--default_1-200-->

how can i display the thumbs in this format for example:

<div class="thumb_i">Title</div></a></div><div class="item"><a href="url" title="title" target="_blank"><img src="thumb src" alt="alt title" />

?

And scj has a feature to truncate the title in case is too long?
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: Thumbs template

Post by dakini »

Ok. i have fount out how here http://smartcj.com/wiki/doku.php?id=new ... _templates
sorry :D
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Thumbs template

Post by admin »

Ok )
sorry for the late answer.
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: Thumbs template

Post by dakini »

I have another question now :)
Sorry but im new to this script and the wiki is enormous is hard to find what im looking for in it

So, my question is
In case i add new categories, it is possible to rescan thumbs and recategorise them in case some of them match the new categories? If yes how can i do that?

And i have seen i dont send any hots back to trades, Maybe i didnt st something ? skiming or?

Thank you!
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Thumbs template

Post by admin »

reset categories - yes, check out rotation - special

skimming - yes, in setting - CJ settings.
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: Thumbs template

Post by dakini »

my gosh :)
i think im getting annoying :P

Now i get error in sitemap.
This
XML Parsing Error: not well-formed
Location: http://domain.tld/scj/sitemap.php
Line Number 1, Column 3:<? echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
--^

And on Tube settings i have setted up to show the 3th thumb from category but it shows a random thumb not the 3th one. How can i fix this?

And about skimming i have seen from thumbs list page the thumbs have direct link to sponsor page, it doesent go trough out.php or something

\EDIT:
Now suddenly i get this message and i cant add new galleries

Message-Id: <[email protected]>
Date: Wed, 29 May 2013 18:46:21 +0000 (UTC)

Mysql error: 126 (Incorrect key file for table './pg/rot_galleries.MYI'; try to repair it) in query update rot_galleries set gallery_slug = 'two-girls-to-lick-pussy', gallery_md5 = 'b1880f5f718966e755c127104030ba68', file_md5 = '', sponsor_id = '0', url = '95', source_url = '', rot_content_id = '0', embed_template = 'content_custom_pic', thumb_url = 'http://cdn1.pics.hardsextube.com/2010/1 ... 1.orig.jpg', embed_code = '', flv_url = '', flv_size_x = '0', flv_size_y = '0', flv_thumb_url = '', tags = '|girls|lick|pussy|', type = '0', rgroup = '0', content = '2976', content_type = '0', duration = '36626', date = '1369853181', activation_date = '2013-05-29 21:46:21', rating = '0', priority = '65707', crop_profile_id = '1', thumbs = '', comment = '', grab_options = 'a:4:{s:5:\"cp_th\";b:0;s:3:\"cnt\";i:1;s:2:\"gt\";s:1:\"a\";s:4:\"cp_t\";s:1:\"0\";}', last_checked = '0', status = '1' where gallery_md5 = 'b1880f5f718966e755c127104030ba68' .Mysql error: 1030 (Got error 134 from storage engine) in query SELECT sponsor_id, count(distinct(gallery_md5)) as total_items FROM rot_galleries
WHERE status = 1 and rgroup != 0 group by sponsor_id.

And in admin pannel the thumbs are not showing and i get this mysql error:

Mysql error: 1030 (Got error 134 from storage engine) in query select SQL_CALC_FOUND_ROWS DISTINCT(g.id), gs.total_ctr as max_ctr, gs.total_shows as casts, gs.total_clicks as clicks, g.priority as gs_priority FROM rot_galleries as g JOIN rot_gallery_data as gd on gd.gallery_md5 = g.gallery_md5 JOIN rot_gal2group as g2gr on g2gr.gal_id = g.id JOIN rot_gallery_stats as gs on gs.thumb_id = g.id WHERE 1 = 1 and g.status IN ( 0,1,2,10) order by max_ctr desc limit 0, 15.
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: Thumbs template

Post by dakini »

The last error i have repaired from maitenance repair db, but i still get the message with mysql error in server
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Thumbs template

Post by admin »

Set short_tags on in php.ini or edit short tag in template.
Let's create new topic for each problem.
Don't forget to run script update
Post Reply